package com;

public class Demo1 {

	public static void main(String[] args) {

		for (int g = 1; g <= 4; g++) {
			for (int s = 1; s <= 4; s++) {
				for (int b = 1; b <= 4; b++)
					if(g==s||g==b||s==b);
					else System.out.print(g + s * 10 + b * 100 + "   ");
			}
			System.out.println();
		}

	}
}